import request from "../utils/request.js";

//封装登录函数
export function login(userInfo){
    return request({
        url: "/admin/user/login",
        method: "post",
        data: userInfo
    });
}

//获取用户信息
export function getUserInfo(params){
    return request({
        url: "/admin/user",
        method: "get",
        params
    });
}